package cn.laixueit.service.impl;

import cn.laixueit.mapper.UserMapper;
import cn.laixueit.pojo.User;
import cn.laixueit.service.UserService;
import cn.laixueit.utils.Util;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService2")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    public void save(User user) {
        user.setId(Util.getUUID());
        userMapper.save(user);
//        System.out.println("调用mapper保存数据成功");
        // 添加日志的操作
    }


}
